#include "bits/stdc++.h"
using namespace std;

int main(){
    int n,m;
    cin>>n>>m;
    for (int i = 0,t; i < n; ++i) {
        for (int j = 0; j < m; ++j) {
            cin>>t;
            cout<<t<<' ';
        }
        cout<<endl;
    }
    return 0;
}